Name | Description | |
---|---|---|
GenericCache<TKey,TValue,TCacheNodeFactory> Constructor | Initializes a new instance of the GenericCache class. |
The following tables list the members exposed by GenericCache<TKey,TValue,TCacheNodeFactory>.
Name | Description | |
---|---|---|
GenericCache<TKey,TValue,TCacheNodeFactory> Constructor | Initializes a new instance of the GenericCache class. |
Name | Description | |
---|---|---|
Capacity | Gets cache capacity | |
Count | Gets cache items count | |
FillFactor | Gets fill factor | |
Item | Gets the value by jey specified. Gets null if cache doesn't contain the key | |
SpaceUsed | Gets the space currently occupied |
Name | Description | |
---|---|---|
Add | Add a new item into the cache. | |
Clear | Clears cache entirely. Does not dispose items contained within the cache | |
ContainsKey | Gets true if item is currently in cache | |
GetKeys | Gets keys of the items currently stored in cache | |
GetValue | Returns the item associated with the supplied identifier. | |
Purge | Swaps the specified item out of the cache | |
PurgeAll | Empties the cache of all items. | |
Remove | Removes item from cache | |
Touch | Touch or refresh a specified item. This allows the specified item to be moved to the end of the dispose queue. E.g. when it is known that this item would benefit from not being purged. |
Name | Description | |
---|---|---|
FetchItem | Called when item is requested but not found in cache | |
PurgeItem | Raised before item is purged out of the cache |